package com.sharker.myproject.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;

import com.sharker.myproject.commom.base.CrudService;
import com.sharker.myproject.domain.Permission;
import com.sharker.myproject.mapper.PermissionDao;
@Service
@Transactional(readOnly = true, isolation = Isolation.DEFAULT)
public class PermissionService extends CrudService<PermissionDao, Permission>{

	@Autowired
	private PermissionDao permissionDao;
	
	public List<Permission> findPermissions(String username) {
		return permissionDao.findPermissions(username);
	}

}
